import axios from "../../../../../../../../../util/axios";
// 砍价商品数据
async function kanjshop(body) {
    return await axios.get('/bargain', body)
}
// 砍价商品数据删除
async function kanjshopdel(query) {
    return await axios.get(`/bargaindleat?id=${query.id}`)
}
// 砍价商品数据编辑
async function kanjshopEdit(body) {
    console.log(body)
    return await axios.get('/bargainbian',{params:{id:body.id,img:body.img,name:body.name,kjia:body.kjia,zuijia:body.zuijia,ren:body.ren,bang:body.bang,cheng:body.cheng,xianl:body.xianl,xianls:body.xianls,time:body.time,zhuang:body.zhuang,zhuangs:body.zhuangs}})
}
// 砍价商品数据筛选
async function kanjshopFillter(body) {
    // console.log(456);
    // console.log(body,"sou111")
    return await axios.get(`/bargainsous`,{params:{sou:body.sou}})
}
// 砍价商品搜索
async function kanjshopSearch(body) {
    // console.log(body.sou,1111111)
    return await axios.get('/bargainsous',{params:{name:body.sou}})
}


// 砍价列表数据
async function kanjlist(body) {
    return await axios.get('/bargainkill', body)
}
// 砍价列表数据删除
async function kanjlistdel(query) {
    console.log(query.id)
    return await axios.get(`/bargainkilldleat?id=${query.id}`)
}
// 砍价列表数据筛选
async function kanjlistfilter(body) {
    console.log(body);
    return await axios.get("/bargainkillsous",{params:{sou:body.sou}})
}
export {
    kanjshop,
    kanjshopdel,
    kanjshopFillter,
    kanjshopSearch,
    kanjshopEdit,

    kanjlist,
    kanjlistdel,
    kanjlistfilter,
}
